/**
 * 
 */
package com.ambow.service.impl;

import java.util.List;

import com.ambow.Entity.Inventory;
import com.ambow.dao.InventoryDao;
import com.ambow.dao.impl.InventoryDaoImpl;
import com.ambow.service.InventoryService;
import com.ambow.utils.BaseDAO;

/**
 * @author Administrator
 *
 */
public class InventoryServiceImpl implements InventoryService {

	/* (non-Javadoc)
	 * @see com.ambow.service.InventoryService#query(java.lang.String, java.lang.String[])
	 */
	  InventoryDao inventoryDao=new InventoryDaoImpl();
	@Override
	public List<Inventory> query(String sql, String[] param) {
		// TODO Auto-generated method stub
		return inventoryDao.query(sql, param) ;
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.InventoryService#queryOne(java.lang.String, java.lang.String[])
	 */
	@Override
	public Inventory queryOne(String sql, String[] param) {
		// TODO Auto-generated method stub
		return inventoryDao.queryOne(sql, param);
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.InventoryService#update(com.ambow.Entity.Inventory)
	 */
	@Override
	public Boolean update(Inventory inventory) {
		// TODO Auto-generated method stub
		return inventoryDao.update(inventory);
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.InventoryService#add(com.ambow.Entity.Inventory)
	 */
	@Override
	public boolean add(Inventory inventory) {
		// TODO Auto-generated method stub
		return inventoryDao.add(inventory);
	}
	

}
